import request from '@/utils/request'

// 查询家庭成员表列表
export function listSchoolFamilyMember(query) {
  return request({
    url: '/system/schoolFamilyMember/list',
    method: 'get',
    params: query
  })
}

// 查询家庭成员表详细
export function getSchoolFamilyMember(familyId) {
  return request({
    url: '/system/schoolFamilyMember/' + familyId,
    method: 'get'
  })
}

// 查询家庭成员表数据
export function getSchoolFamilyMemberData(query) {
  return request({
    url: '/system/schoolFamilyMember/getData',
    method: 'get',
    params: query
  })
}

// 新增家庭成员表
export function addSchoolFamilyMember(data) {
  return request({
    url: '/system/schoolFamilyMember',
    method: 'post',
    data: data
  })
}

// 修改家庭成员表
export function updateSchoolFamilyMember(data) {
  return request({
    url: '/system/schoolFamilyMember',
    method: 'put',
    data: data
  })
}

// 删除家庭成员表
export function delSchoolFamilyMember(familyId) {
  return request({
    url: '/system/schoolFamilyMember/' + familyId,
    method: 'delete'
  })
}
